package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskProcessInspectionItemList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaGY00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工艺节点-检查项
 */
public interface TRiskProcessInspectionItemMapper extends BaseMapper<TRiskProcessInspectionItemList> {

    ////风险辨识-风险辨识-工艺节点-检查项-添加
    int insertProcessInspectionItem(@Param("data") TRiskProcessInspectionItemList data);

    ////风险辨识-风险辨识-工艺节点-检查项-编辑
    int updateProcessInspectionItem(@Param("id") Long id,
        @Param("data") TRiskProcessInspectionItemList data);

    int deleteProcessInspectionItem(List<String> list);

    List<TRiskProcessInspectionItemList> getByIds(Long companyId, String taskAllocatId);

    List<TRiskProcessInspectionItemList> getByTridentId(
        Long companyId,@Param("id") String id,List<String> tAllIdList);

    int addGY00List(@Param("companyId") Long companyId, @Param("userId") String userId,
                    @Param("data") List<TEquipFacStaGY00Entity> data);
    
}
